package com.zt.bus.line.model;

import com.zt.system.model.Entity;
import net.sf.json.JSONObject;

import java.io.Serializable;

public class Line extends Entity implements Serializable {
    private String lineId;

    private String lineNo;

    private String lineName;

    private String catalog;

    private String lineType;

    private String lineStatus;

    private Double mileage;

    private Double price;

    private String introduce;

    public JSONObject toJSONObject() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("lineId", lineId);
        jsonObject.put("lineNo", lineNo);
        jsonObject.put("lineName", lineName);
        jsonObject.put("catalog", catalog);
        jsonObject.put("lineType", lineType);
        jsonObject.put("lineStatus", lineStatus);
        jsonObject.put("mileage", mileage);
        jsonObject.put("price", price);
        jsonObject.put("introduce", introduce);
        return jsonObject;
    }

    private static final long serialVersionUID = 1L;

    public String getLineId() {
        return lineId;
    }

    public void setLineId(String lineId) {
        this.lineId = lineId;
    }

    public String getLineNo() {
        return lineNo;
    }

    public void setLineNo(String lineNo) {
        this.lineNo = lineNo;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getCatalog() {
        return catalog;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public String getLineType() {
        return lineType;
    }

    public void setLineType(String lineType) {
        this.lineType = lineType;
    }

    public String getLineStatus() {
        return lineStatus;
    }

    public void setLineStatus(String lineStatus) {
        this.lineStatus = lineStatus;
    }

    public Double getMileage() {
        return mileage;
    }

    public void setMileage(Double mileage) {
        this.mileage = mileage;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }
}